import styled from "styled-components";
import {Send} from "@material-ui/icons";

const Container = styled.div`
  height: 60vh;
  background-color: #FCF5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
`;

const Title = styled.div`
  font-size: 70px;
  margin-bottom: 20px;
  font-weight: 600;

`;

const Desc = styled.div`
  font-size: 22px;
  margin-bottom: 20px;
`

const InputContainer = styled.div`
  width: 50%;
  height: 50px;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid lightgray;
`;

const Input = styled.input`
  flex: 8;
  border: none;
  padding-left: 20px;
  outline: none;
  

`;

const Button = styled.button`
  background-color: teal;
  color: white;
  font-size: 22px;
  height: 100%;
  flex: 1;
  outline: none;
  border: none;
  cursor: pointer;
`


const Newsletter = ({}) => {
  return (
    <Container>
      <Title>
        Newsletter
      </Title>
      <Desc>
        Get timely updates from your favorite products.
      </Desc>
      <InputContainer>
        <Input placeholder={"Your Email"}/>
        <Button>
          <Send/>
        </Button>
      </InputContainer>


    </Container>
  )

};

export default Newsletter;
